//
//  FirstTimeLaunch.h
//  Pocket Doctor alpha version
//
//  Created by Sherif, Yin, Taylor, Jacob, Anna, Mike on 11-10-25.
//  Copyright (c) 2011 __Sytjam__. All rights reserved.
//
//Class Description: First time set up of the application.
//                   save preference to database & set up the application - takes you to mail app when saving.
//
//Known Bugs: none.
//

#import <UIKit/UIKit.h>
#import "AppDelegate.h"

@class MainMenu;

@interface FirstTimeLaunch : UIViewController{
    
    //Class view
    MainMenu *mm;
    
    //Point to the appDelegate for its SQLite database pointer.
    AppDelegate * aD;
    
    
    //Interface Outlets & supporting functions
    //Picker View
    UIPickerView *questionPicker;
    NSArray *questions;
    
    //Fields and buttons
    UITextField *secretQuestion;
    UITextField *secretAnswer;
    UITextField *passcode;
    UITextField *hint;
    UITextField *emailaddress;
    UIButton *secretQuestionButton;
    UIButton *done;
    UIButton *bg;
    UIButton *doneQuestion;
}

@property (retain, nonatomic) MainMenu *mm;
@property (retain, nonatomic) AppDelegate * aD;

@property (retain, nonatomic) IBOutlet UIPickerView *questionPicker;
@property (retain, nonatomic) NSArray *questions;

@property (retain, nonatomic) IBOutlet UITextField *secretQuestion;
@property (retain, nonatomic) IBOutlet UITextField *secretAnswer;
@property (retain, nonatomic) IBOutlet UITextField *passcode;
@property (retain, nonatomic) IBOutlet UITextField *hint;
@property (retain, nonatomic) IBOutlet UITextField *emailaddress;
@property (retain, nonatomic) IBOutlet UIButton *secretQuestionButton;
@property (retain, nonatomic) IBOutlet UIButton *done;
@property (retain, nonatomic) IBOutlet UIButton *doneQuestion;


- (IBAction)TapBackground:(id)sender;
- (IBAction)TapDoneKeyboard:(id)sender;
- (IBAction)SecretQuestion:(id)sender;
- (IBAction)DoneSelected:(id)sender;
- (IBAction)DoneSecretQuestion:(id)sender;
- (IBAction)checkPasscodeLength:(id)sender;
- (void)animateTextField: (UITextField *) textField up: (BOOL)up;
- (IBAction)textFieldDidEndEditing:(UITextField *)textField;
- (IBAction)textFieldDidBeginEditing:(UITextField *)textField;

@end
